﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using PBKVideo;

namespace PBKApplication
{
    public partial class PlayForm : Form
    {
        private Video vid;

        public PlayForm(Video vid)
        {
            InitializeComponent();
            this.Text += @" - " + vid.Title;
            this.vid = vid;
        }

        private void PlayForm_Load(object sender, EventArgs e)
        {
            //System.IO.File.WriteAllText(@"D:\testpbkpbk.txt", vid.EmbedCode);
            axWebBrowser1.Navigate(vid.EmbedCode);
        }

        private void PlayForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            this.Dispose(true);
        }
    }
}
